from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

# 初始化路由
router = DefaultRouter()
router.register(r'daily_statistics', views.DailyStatisticsViewSet, basename='daily_statistics')
router.register(r'statistic_cache', views.StatisticCacheViewSet, basename='statistic_cache')
router.register(r'statistic_queries', views.StatisticQueriesViewSet, basename='statistic_queries')

urlpatterns = [
    path('', include(router.urls)),  # 将路由应用到/api/路径下
]
